<%--
  Created by IntelliJ IDEA.
  User: kezs
  Date: 2017/10/11
  Time: 16:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
ABCDEFG
<ul>
<c:forEach items="${categories}" var="category">
    <li>
        <c:out value="${category.title}"/>
    </li>

</c:forEach>
</ul>


<c:forEach items="${categories}" var="a">
    <div class="art_img_box clearfix">

        <div class="fr box_content">
            <h2>
                <a href="#" title="tttt" target="_blank">
                    <c:out value="${a.title}"/>
                </a>
            </h2>
            <div class="info"> <span>关键字 </span>：<span><small><c:out value="${article}"/></small></span></div>

            <p class="intro">
                <c:choose>
                    <c:when test="${fn:length(article)>200}">
                        ${fn:substring(article, 0, 200)}...
                    </c:when>
                    <c:otherwise>
                        <c:out value="${article}"/>
                    </c:otherwise>
                </c:choose>

            </p>
        </div>
        <!-- 标记为最新-->
        <div class="news"></div>
    </div>


</c:forEach>


<a data-type="13" data-tmpl="230x312" data-tmplid="210" data-rd="2" data-style="2" data-border="1" href="#">aaaaaaaaaaaaaaa</a>
</body>
</html>
